package com.njuse.jvmfinal.runtimestructure;

import java.util.ArrayList;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Jthread {
private int top=0;
private ArrayList<Jframe> frames=new ArrayList<Jframe>();

public void push(Jframe frame) {
	this.frames.add(frame);
	top++;
}


public Jframe pop() {
	top--;
	return this.frames.remove(top);
	}
}
